import 'package:json_annotation/json_annotation.dart';
part 'image_model.g.dart';

@JsonSerializable()
class ImageModel {
  int max_width;
  int max_height;
  int original_width;
  int original_height;
  String ident;
  String url_pattern;

  ImageModel(this.max_width, this.max_height, this.original_width,
      this.original_height, this.ident, this.url_pattern);

  factory ImageModel.fromJson(Map<String, dynamic> json) =>
      _$ImageModelFromJson(json);

  Map<String, dynamic> toJson() => _$ImageModelToJson(this);
}
